import 'package:json_annotation/json_annotation.dart';

part 'musicRadioModel.g.dart';


@JsonSerializable()
class MusicRadioModel extends Object  {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'message')
  String message;

  @JsonKey(name: 'result')
  MusicRadio result;

  MusicRadioModel(this.code,this.message,this.result,);

  factory MusicRadioModel.fromJson(Map<String, dynamic> srcJson) => _$MusicRadioModelFromJson(srcJson);

}


@JsonSerializable()
class MusicRadio extends Object{

  @JsonKey(name: 'ch_name')
  String chName;

  @JsonKey(name: 'channel')
  String channel;

  @JsonKey(name: 'songlist')
  List<Songlist> songlist;

  MusicRadio(this.chName,this.channel,this.songlist,);

  factory MusicRadio.fromJson(Map<String, dynamic> srcJson) => _$MusicRadioFromJson(srcJson);

}


@JsonSerializable()
class Songlist extends Object{

  @JsonKey(name: 'all_artist_id')
  String allArtistId;

  @JsonKey(name: 'all_rate')
  String allRate;

  @JsonKey(name: 'artist')
  String artist;

  @JsonKey(name: 'artist_id')
  String artistId;

  @JsonKey(name: 'charge')
  int charge;

  @JsonKey(name: 'flow')
  int flow;

  @JsonKey(name: 'havehigh')
  int havehigh;

  @JsonKey(name: 'method')
  int method;

  @JsonKey(name: 'resource_type')
  String resourceType;

  @JsonKey(name: 'songid')
  String songid;

  @JsonKey(name: 'thumb')
  String thumb;

  @JsonKey(name: 'title')
  String title;

  Songlist(this.allArtistId,this.allRate,this.artist,this.artistId,this.charge,this.flow,this.havehigh,this.method,this.resourceType,this.songid,this.thumb,this.title,);

  factory Songlist.fromJson(Map<String, dynamic> srcJson) => _$SonglistFromJson(srcJson);

}


